<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="keywords" content="关键词,关键词,关键词,关键词,5个关键词" />
<meta name="description" content="网站简介，不超过80个字" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./front/css/index.css" rel="stylesheet">
<script src="./front/js/jquery.min.js"></script>
<script src="./front/js/comm.js"></script>
<!--[if lt IE 9]> 
<script src="js/modernizr.js"></script>
<![endif]-->
<style type="text/css">
.sxy {
	padding-left: 300px;
	padding-top: 50px;
}
</style>
</head>
<body>
	<header>
		<div class="logo">杨青个人博客</div>
		<div class="top-nav">
			<h2 id="mnavh">
				<span class="navicon"></span>
			</h2>
			<ul id="nav">
				<li><a href="index">网站首页</a></li>
				<c:if test="${fenlei!=null}">
					<c:forEach items="${fenlei}" var="tion">
						<li><a href="main?cid=${tion.cid}">${tion.cName}</a></li>
					</c:forEach>
				</c:if>
				<li><a href="Aboutme">关于我</a></li>
				<li><a href="Leaves">留言</a></li>
				<c:if test="${userz!=null}">
					<li><a href="indexs">${userz.userName}</a></li>
					<li><a href="tuichu">退出</a>
				</c:if>
				<c:if test="${userz==null}">
					<li><a href="login.html">登录</a></li>
				</c:if>
			</ul>
		</div>
	</header>
	<aside class="side">
		<div class="about">
			<i><a href="/"><img src="front/images/avatar.jpg"></a></i>
			<p>杨青，一个80后草根女站长！09年入行。一直潜心研究web前端技术，一边工作一边积累经验，分享一些个人博客模板，以及SEO优化等心得。</p>
		</div>
		<div class="weixin">
			<img src="front/images/wx.jpg">
			<p>关注我 么么哒！</p>
		</div>
	</aside>
	<main>
	<div class="main-content">
		<div class="welcome">
			您现在的位置是： <a href="index">首页</a> >
			<c:forEach items="${pager.data }" var="cont" begin="0" end="0">
				<a href="main?cid=${cont.classification.cid}"></a>${cont.classification.cName }
    	</c:forEach>
		</div>
		<div class="blogbox">
			<div class="bloglist">
				<ul>
					<c:if test="${pager!=null and pager.totalRecords>0 }">
						<c:forEach items="${pager.data }" var="cont">
							<li>
								<h2>
									<a href="info/${cont.tid}">${cont.tcontentheader }</a>
									<c:if test="${cont.roof==1}"><span style="float: right;">[置顶]</span></c:if>
								</h2> <i><a href="info/${cont.tid}"><img
										src="./image/gg.jpg"></a></i>
								<p class="bloginfo" style="margin-top: 150px;">
									<span>${cont.author }</span> <span><fmt:formatDate
											value="${cont.tcreationtime}" pattern="yyyy-MM-dd" /></span> <span>${cont.classification.cName }</span>
								</p>
							</li>
						</c:forEach>
							<div style="padding-left: 250px;padding-top: 50px;padding-bottom: 20px;">
						<a href="main?curPage=${pager.curPage-1 }&cid=${cid}"style="padding-left: 30px;">上一页</a>
						<c:forEach begin="1" end="${pager.totalPages }" var="no">
							<a href="main?curPage=${no}&cid=${cid}"style="padding-left: 30px;">${no }</a>
						</c:forEach>
						<a href="main?curPage=${pager.curPage+1 }&cid=${cid}"style="padding-left: 30px;padding-right: 30px;">下一页</a>
  						总页数：${pager.totalPages}
  						</div>
   				 </c:if>
				</ul>
			</div>
			<!--       <div class="pagelist"><a title="Total record">&nbsp;<b>170</b> </a>&nbsp;&nbsp;&nbsp;<b>1</b>&nbsp;<a href="/jstt/index_2.html">2</a>&nbsp;<a href="/jstt/index_3.html">3</a>&nbsp;<a href="/jstt/index_4.html">4</a>&nbsp;<a href="/jstt/index_5.html">5</a>&nbsp;<a href="/jstt/index_6.html">6</a>&nbsp;<a href="/jstt/index_2.html">下一页</a>&nbsp;<a href="/jstt/index_15.html">尾页</a></div>
 -->
		</div>
		<div class="rside">
			<div class="news">
				<h2 class="newstitle">
					<b>文章排行</b>
				</h2>
				<ul>
					<c:if test="${neirong1!=null}">
						<c:forEach items="${neirong1}" var="tion">
							<li><a href="info/${tion.tid}"><span><fmt:formatDate
											value="${tion.tcreationtime}" pattern="MM-dd" /></span>${tion.tcontentheader}</a></li>
						</c:forEach>
					</c:if>
				</ul>
			</div>
			<div class="news">
				<h2 class="newstitle">
					<b>本栏推荐</b>
				</h2>
				<ul>
					<c:if test="${neirong2!=null}">
						<c:forEach items="${neirong2}" var="tion">
							<li><a href="info/${tion.tid}"><span><fmt:formatDate
											value="${tion.tcreationtime}" pattern="MM-dd" /></span>${tion.tcontentheader}</a></li>
						</c:forEach>
					</c:if>
				</ul>
			</div>
		</div>
		<div class="copyright">
			<p>
				Copyright 2018 Inc. AllRights Reserved. Design by <a href="/">杨青个人博客</a>
				蜀ICP备11002373号-1
			</p>
		</div>
	</div>
	</main>
	<a href="#" class="cd-top cd-is-visible">Top</a>
</body>
</html>
